package com.pacy.pacybaseproject.adapters;

import android.graphics.Color;
import android.util.TypedValue;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.fondesa.recyclerviewdivider.DividerBuilder;
import com.pacy.pacybaseproject.R;
import com.pacy.pacybaseproject.beans.BusStationBean;

/**
 * @author PACY
 * @date 2024/1/3
 * description:
 */
public class RoutingBusAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public RoutingBusAdapter() {
        super(R.layout.routing_bus_item_view);
    }

    @Override
    protected void convert(BaseViewHolder holder, String s) {

        if(holder.getAbsoluteAdapterPosition()==0){
            holder.setBackgroundColor(R.id.lin_bk,Color.parseColor("#D6FFCD"));
        }else{
            holder.setBackgroundColor(R.id.lin_bk,Color.parseColor("#F7F7F7"));
        }

    }
}
